package drds.data_propagate.driver.packets.server;

import java.net.SocketAddress;
import java.util.ArrayList;
import java.util.List;

public class ResultSetPacket {

    private SocketAddress sourceSocketAddress;
    private List<ColumnPacket> columnPacketList = new ArrayList<ColumnPacket>();
    private List<String> columnNameList = new ArrayList<String>();

    public List<ColumnPacket> getColumnPacketList() {
        return columnPacketList;
    }

    public void setColumnPacketList(List<ColumnPacket> columnPacketList) {
        this.columnPacketList = columnPacketList;
    }

    public List<String> getColumnNameList() {
        return columnNameList;
    }

    public void setColumnNameList(List<String> columnNameList) {
        this.columnNameList = columnNameList;
    }

    public SocketAddress getSourceSocketAddress() {
        return sourceSocketAddress;
    }

    public void setSourceSocketAddress(SocketAddress sourceSocketAddress) {
        this.sourceSocketAddress = sourceSocketAddress;
    }

    public String toString() {
        return "ResultSetPacket [columnPacketList=" + columnPacketList + ", columnNameList=" + columnNameList
                + ", sourceSocketAddress=" + sourceSocketAddress + "]";
    }

}
